package com.mzj.saas.front;

import java.util.List;

import com.haixiaoke.saas.repository.core.BaseController;
import com.haixiaoke.saas.repository.core.page.TableDataInfo;
import com.haixiaoke.saas.repository.pojo.HouseBanner;
import com.haixiaoke.saas.repository.service.IHouseBannerService;
import com.mzj.saas.util.LoginUserUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 公众号首页轮播图Controller
 *
 * @author qixi
 * @date 2024-03-25
 */
@RestController
@RequestMapping("/front/houseBanner")
public class FrontOpHouseBannerController extends BaseController {
    @Autowired
    private IHouseBannerService houseBannerService;

    @Autowired
    private LoginUserUtil loginUserUtil;


    /**
     * 查询公众号首页轮播图列表
     */
    @GetMapping("/list")
    public TableDataInfo usesList(HouseBanner houseBanner) {
        startPage();
        List<HouseBanner> list = houseBannerService.selectHouseBannerList(houseBanner);
        return getDataTable(list);
    }

}
